import http from '@/api/utils/http'

// 学生课程列表
export function courseList(params = null) {
	return http.get('/foregin/teacher/attendceatt', params, {
		'Content-type': 'application/x-www-form-urlencoded',
	})
}

// 今日课程列表
export function todayCourseList(params = null) {
	return http.post('/foregin/teacher/todayAttendce', params, {
		'Content-type': 'application/x-www-form-urlencoded',
	})
}

// 待办列表
export function todo(params = null) {
	return http.post('/foregin/teacher/todo', params, {
		'Content-type': 'application/x-www-form-urlencoded',
	})
}

// 已办列表
export function done(params = null) {
	return http.post('/foregin/teacher/done', params, {
		'Content-type': 'application/x-www-form-urlencoded',
	})
}

// 审批
export function auditAPI(params = null) {
	return http.post('/foregin/teacher/audit', params, {
		'Content-type': 'application/x-www-form-urlencoded',
	})
}

// 当前老师所带课程列表
export function teacherCourse(params) {
	return http.post('/foregin/teacher/myCourse', params, {
		'Content-type': 'application/x-www-form-urlencoded',
	})
}

// 今日考勤统计数据
export function personalStat(params) {
	return http.post('/foregin/teacher/personalStat', params, {
		'Content-type': 'application/x-www-form-urlencoded',
	})
}

// 考勤统计数据
export function allStat(params) {
	return http.post('/foregin/teacher/allStat', params, {
		'Content-type': 'application/x-www-form-urlencoded',
	})
}

// 今日考勤统计数据
export function nodeList(params) {
	return http.post('/foregin/teacher/nodeList', params, {
		'Content-type': 'application/x-www-form-urlencoded',
	})
}

// 考勤统计数据
export function nodeAllList(params) {
	return http.post('/foregin/teacher/nodeAllList', params, {
		'Content-type': 'application/x-www-form-urlencoded',
	})
}
